<?Lassoscript
// Last modified 11/30/09 by Eric Landmann

// DEVELOPER'S NOTES
// This is to display the search params on the "You searched for" area of the search results page

// CHANGE NOTES
// 11/30/09
// First implementation

// Debugging
// Var:'svDebug' = 'Y';

Var:'svSearchParams' = (string);
Var:'svSearchParamsURL' = (string);
// Add initial question mark to start query string for URL
$svSearchParamsURL += '?DataType=User';

// New
If: Var:'vNew' != '';
	$svSearchParamsURL += ('&New='($vNew));
/If;

// First Name
If: Var:'vFirst_Name' != '';
	$svSearchParams += ('<strong>First Name:</strong> ' ($vFirst_Name));
	$svSearchParams += ', ';
	$svSearchParamsURL += ('&First_Name='($vFirst_Name));
/If;

// Last Name
If: Var:'vLast_Name' != '';
	$svSearchParams += ('<strong>Last Name:</strong> ' ($vLast_Name));
	$svSearchParams += ', ';
	$svSearchParamsURL += ('&Last_Name='($vLast_Name));
/If;

// Post Name
If: Var:'vPost_Name' != '';
	$svSearchParams += ('<strong>Post Name:</strong> ' ($vPost_Name));
	$svSearchParams += ', ';
	$svSearchParamsURL += ('&Post_Name='($vPost_Name));
/If;

// Mail
If: Var:'vMail' != '';
	$svSearchParams += ('<strong>Mail:</strong> ' ($vMail));
	$svSearchParams += ', ';
	$svSearchParamsURL += ('&Mail='($vMail));
/If;


// Allow
If: Var:'vAllow' != '';
	$svSearchParams += ('<strong>Allow:</strong> ' ($vAllow));
	$svSearchParams += ', ';
	$svSearchParamsURL += ('&Allow='($vAllow));
/If;

// Remove trailing comma
$svSearchParams->RemoveTrailing(', ');

Debug;
	'64: svSearchParams = ' $svSearchParams '<br>\n';
	'64: svSearchParamsURL = ' $svSearchParamsURL '<br>\n';
/Debug;
?>